home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 422_04 / microcad.doc < prev    next >
Text File  |  1994-03-06  |  16KB  |  411 lines

  1. MICROCAD is a very small drawing program (less than 12k!)
  2.  
  3. It has commands for drawing/erasing/moving/copying such things as lines,
  4. boxes, circles, arcs, graphical text and other drawings as "group" objects.
  5. It also features a "display" mode, where it can be used as a simple viewer,
  6. and includes an MCPRINT utility to print your drawings.
  7.  
  8. This is not intended as a serious drafting package, however it is useful as
  9. a means of transmitting simple drawings via diskette, or modem. MICROCAD is
  10. "free", and may be used and distributed without payment or royalty.
  11.  
  12. The complete MICRO-C source code to MICROCAD is available free of charge
  13. from our BBS, and may prove useful to anyone wishing to experiment with a
  14. drawing editor, or add support for other devices.
  15.  
  16. In its current form, MICROCAD requires a mouse, a VGA display (it works
  17. at 640x480), and either an HP LASERJET or EPSON DOT-MATRIX printer. It
  18. should be fairly easy to modify it for compatibility with other devices.
  19.  
  20.  
  21. The MICROCAD command:
  22. --------------------
  23.  
  24. The MICROCAD command has the following syntax:
  25.  
  26.    MICROCAD [drawing file] [F=font file] [/Display]
  27.  
  28.    [drawing file] is the name of a file containing a drawing that you
  29. wish to edit. The extension '.DWG' is assumed. If you do not specify a
  30. file name, MICROCAD assumes its default name MICROCAD.DWG. This default
  31. drawing file normally contains a blank drawing, and is used only to
  32. establish the default settings for the "S)etup" values.
  33.  
  34.    [font file] is the name of a file containing a character set font that
  35. will be used to display any text in the drawing file. If you do not specify
  36. a font file, The default MICROCAD.FNT is assumed.
  37.  
  38.    [/Display] causes MICROCAD to act as a viewer. The mouse is not
  39. activated, the grid is disabled (even if it is turned on in the drawing),
  40. and the drawing is displayed. Pressing any key will terminate the MICROCAD
  41. at this point.
  42.  
  43. Mouse:
  44. -----
  45.  
  46. MICROCAD uses only the LEFT and RIGHT mouse buttons, allowing it to be
  47. used with either a two or three button pointing device.
  48.  
  49. When sitting at the top command level (no command text visible at the
  50. top of the screen), the mouse buttons function as follows:
  51.  
  52.    LEFT   - Brings up the command menu at the top of the screen. Pressing
  53.             the key corrsponding to a command will active that command.
  54.  
  55.    RIGHT  - Activates the last command that you executed. This is a useful
  56.             way to perform multiple operations, such as drawing multiple
  57.             box's etc.
  58.  
  59. Unless noted otherwise, the mouse buttons behave as follows once a command
  60. has been activated:
  61.  
  62.    LEFT   - Performs an operation for which you are being prompted at the
  63.             top of the screen. Some commands may have several locations that
  64.             have to be selected. For each location, you will receive a
  65.             prompt at the top of the screen. Simply move the mouse pointer
  66.             to the desired location, and press the LEFT button.
  67.  
  68.    RIGHT  - Cancels the operation. In most cases this will return you directly
  69.             to the top command level (no command active). In some cases, this
  70.             will cancel a sub-function, and permit you to continue with the
  71.             command.
  72.  
  73. Main COMMANDS:
  74. -------------
  75.  
  76. The following commands are available from within MICROCAD at the top
  77. command level.
  78.  
  79. A)rc
  80.  
  81. Prompts you for a "center" point, a starting point, and an ending point.
  82. Draws an arc clockwise from the starting point to the ending point, which
  83. would be a portion of a circle centered about the center point.
  84.  
  85. B)ox
  86.  
  87. This command prompts you to select two corners, and after the second
  88. one is selected, MICROCAD will draw a BOX with diagonal corners on those
  89. points.
  90.  
  91. C)ircle
  92.  
  93. Prompts you to select a center point, and then a second point. MICROCAD
  94. will draw a circle about the center point, which includes the second point
  95. in its circumference.
  96.  
  97. D)up
  98.  
  99. Prompts you to select an object, and then for a new insertion point. The
  100. object is copied to the new point. Most useful for duplicating a "group"
  101. that you have included from another file, or insuring that you get a circle
  102. of exactly the same size etc. Duplicating an object takes only 7 bytes in
  103. the drawing file, no matter how large or complicated the object is.
  104.  
  105. See the E)rase command below for details on selecting an object.
  106.  
  107. E)rase
  108.  
  109. Prompts you to select an object. To select an object, you must position
  110. the cursor over the BASE POINT of that object. In general, the base point
  111. will be the first point that you selected when defining the object.
  112.  
  113. To make it easier for you, MICROCAD constantly watches the cursor
  114. position when this command is executed, and selects any object who's
  115. base point comes in contact with the cursor. Once an object is selected,
  116. MICROCAD indicates so, by temporarily removing it from the screen. Press
  117. the LEFT button to accept this, and permanently erase the object.
  118.  
  119. If you accidently select an object that you don't want to erase, just
  120. move the cursor away from it, and press the RIGHT button. MICROCAD will
  121. restore it to the screen, and continue to search for other objects.
  122.  
  123. If more than one object has its base point at the same location, MICROCAD
  124. will select the one which was defined first. You may accept this with the
  125. LEFT button, or press the RIGHT button to switch to the next oldest one.
  126. If you wish to cancel the selection in this case, you must keep pressing the
  127. RIGHT button until all objects at that location have been skipped.
  128.  
  129. You may use the S)etup / B)ase-markers command to cause the base points
  130. of all objects in the drawing to be made visible.
  131.  
  132. F)unc
  133.  
  134. This command brings up menu of misc. functions:
  135.  
  136.    F)ont
  137.  
  138.    Prompts you for a new character font file, and if given, loads it, and
  139.    re-draws the drawing, using the new font.
  140.  
  141.    I)nsert
  142.  
  143.    Prompts you for a drawing filename, and then an insertion point. Inserts
  144.    the contents of that drawing into the current drawing as a single object.
  145.    The base point of the new object is the upper left corner of an invisible
  146.    box, just large enough to include all object base points in the included
  147.    drawing. This point will be shown by the cursor while selecting the new
  148.    object location.
  149.  
  150.    If you wish to insert the same drawing several times, it takes much less
  151.    space in the drawing file if you insert it once, and then use the duplicate
  152.    function to create the other instances.
  153.  
  154.    L)oad
  155.  
  156.    Prompts for a filename, and loads a drawing from that file. Any unsaved
  157.    changes to the current drawing are lost.
  158.  
  159.    Q)uit
  160.  
  161.    Terminates MICROCAD.
  162.  
  163.    S)ave
  164.  
  165.    Prompts for a filename, and saves the current drawing to that file.
  166.  
  167. L)ine
  168.  
  169. Prompts for a starting point, and then a series of end points. Each
  170. time you select a new point, a line is drawn to it from the previous point.
  171. Press the RIGHT button to stop drawing lines.
  172.  
  173. M)ove
  174.  
  175. Prompts you to select an object, and then for its new base point.
  176. The object is then repositioned in the drawing.
  177.  
  178. See the 'E)rase' command for details on selecting an object.
  179.  
  180. R)edraw
  181.  
  182. Redisplays the drawing. This is useful to see any objects which are
  183. overwritten by the text line at the top of the screen, and to "fix"
  184. any breaks in lines, or missing grid markers causes by erasing of
  185. overlaid objects.
  186.  
  187. S)etup
  188.  
  189. Brings up a menu of setup subcommands:
  190.  
  191.    B)ase-markers
  192.  
  193.    This command toggles ON/OFF the display of base points. See E)rase command
  194.    for a description of base points. When ON, the base point for each object
  195.    in the drawing will appear surrounded by a tiny box.
  196.  
  197.    C)urser-base
  198.  
  199.    Prompts you to select a base point for the cursor. After you select one,
  200.    the cursor position shown in the upper right corner of the screen, will
  201.    be relative to this position.
  202.  
  203.    G)rid
  204.  
  205.    Prompts for the spacing (in pixels) of the grid markers. Entering a
  206.    blank line, or a value of zero turns off grid markers. Grid markers
  207.    are simply "dots" placed at regular intervals, which you can use
  208.    as a reference for aligning objects etc.
  209.  
  210.    S)